cqjs.component('datetimeField', {
    template: `
        <el-date-picker 
            v-model="data.data[$props.field.name]"
            type="datetime"
            @change="handleChange"
            :placeholder="$props.placeholder"
            style='width:100%'/>
    `,
    props: ['field', 'data', 'placeholder'],
    methods:{
        handleChange(v){
            this.data.dirty[this.field.name] = v;
        }
    }
});